<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">

  <process id="process" isExecutable="true">

    <startEvent id="theStart" />

    <sequenceFlow sourceRef="theStart" targetRef="inclusiveFork" />

    <inclusiveGateway id="inclusiveFork" />

    <sequenceFlow sourceRef="inclusiveFork" targetRef="task" />
    <sequenceFlow sourceRef="inclusiveFork" targetRef="subprocess" />

    <userTask id="task" />

    <subProcess id="subprocess">

      <startEvent id="innerStart" />

      <sequenceFlow sourceRef="innerStart" targetRef="innersubprocess" />

      <subProcess id="innersubprocess">
      
        <startEvent id="innersubprocessStart" />
      
        <sequenceFlow sourceRef="innersubprocessStart" targetRef="innersubprocessTask" />
  
        <userTask id="innersubprocessTask" />
  
        <sequenceFlow sourceRef="innersubprocessTask" targetRef="innersubprocessEnd" />
  
        <endEvent id="innersubprocessEnd" />

      </subProcess>

    </subProcess>

    <sequenceFlow sourceRef="task" targetRef="inclusiveJoin" />
    <sequenceFlow sourceRef="subprocess" targetRef="inclusiveJoin" />

    <inclusiveGateway id="inclusiveJoin" />

    <sequenceFlow sourceRef="inclusiveJoin" targetRef="taskAfterJoin" />

    <userTask id="taskAfterJoin" />

    <sequenceFlow sourceRef="taskAfterJoin" targetRef="theEnd" />

    <endEvent id="theEnd" />

  </process>

</definitions>
